.masonry {
    width: 600px;
    column-count: 3;
    column-gap: 40px;
}
.item {
    break-inside: avoid;
    box-sizing: border-box;
    padding-bottom: 20px;
    /* padding: 10px; */
}
.item img{
    width: 200px;
}